'''
Created on Dec 5, 2010

@author: jackreilly
'''



from google.appengine.ext import webapp
from jettube.client.responseUtil import dumpDictionary
from jettube.models import Comment, Song



class GetComments( webapp.RequestHandler ):
    def get( self ):
        dumpDictionary(Comment.getCommentsDictionaryFromRequest(self.request), self.response)

class PostComment( webapp.RequestHandler ):
    def get( self ):
        Comment.putNewCommentFromRequest(self.request)
        dumpDictionary(Song.getSongDictionaryFromRequest(self.request), self.response)
